package com.zhibang.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 团游
 * @TableName group_travel
 */
@TableName(value ="group_travel")
@Data
@Document(indexName = "grouptravel")
public class GroupTravel {
    @Schema(description = "团游id")
    @Id
    @Field(type = FieldType.Long)
    private Long id;
    @Schema(description = "团游名称")
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String mainName;
    @Schema(description = "团游副名称")
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String name;
    @Field(type = FieldType.Integer)
    @Schema(description = "团游级别")
    private Integer level;
    @Schema(description = "团游类型名称")
    @Field(type = FieldType.Keyword)
    private String productTypeName;
    @Schema(description = "团游图片")
    @Field(type = FieldType.Keyword,index = false)
    private String img;
    @Schema(description = "团游评分")
    @Field(type = FieldType.Double)
    private Double score;
    @Schema(description = "团游价格")
    @Field(type = FieldType.Double)
    private Double price;
    @Schema(description = "团游标签")
    @Field(type = FieldType.Keyword,index = false)
    private String tags;
    @Schema(description = "创建时间")
    @Field(type = FieldType.Date)
    private String createTime;
}